-- GENERATED SPELL FOR [Ragefire Shaman] --


function spell0_11319(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_11319', 3000, 1)
end

function spell1_11319(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11319', 3000, 1)
end

function Sorts_11319(pUnit, Event)
local choix_sorts_11319 = math.random(0, 1)
if choix_sorts_11319 == 0 then
pUnit:RegisterEvent('spell0_11319', 1, 1)
end
if choix_sorts_11319 == 1 then
pUnit:RegisterEvent('spell1_11319', 1, 1)
end
end

function mob11319_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11319', math.random(1500, 3000), 1)
end

function mob11319_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11319_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11319_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11319, 1, 'mob11319_Action')
RegisterUnitEvent(11319, 2, 'mob11319_Leave')
RegisterUnitEvent(11319, 3, 'mob11319_Kill')
RegisterUnitEvent(11319, 4, 'mob11319_Die')
